import { createRouter, createWebHistory } from 'vue-router';
import HomeView from '../views/HomeView.vue';
import WhitelistView from '../views/WhitelistView.vue';
import SubscriptionView from '../views/SubscriptionView.vue';
import SubscriptionStatusView from '../views/SubscriptionStatusView.vue';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/whitelist',
      name: 'whitelist',
      component: WhitelistView
    },
    {
      path: '/subscription',
      name: 'subscription',
      component: SubscriptionView
    },
    {
      path: '/subscription/status',
      name: 'subscription-status',
      component: SubscriptionStatusView
    },
    {
      path: '/admin',
      name: 'admin',
      component: AdminView
    }
  ]
});

export default router;